import request from '@/utils/request'

// 病例
// 获取数据库病例列表
export function getUserList(data) {
  return request({
    url: '/db/DbUser/getUserList',
    method: 'post',
    data
  })
}
// 创建病例
export function addCaseUser(data) {
  return request({
    url: '/db/DbUser/addCaseUser',
    method: 'post',
    data
  })
}
// 删除病例
export function deleteUser(data) {
  return request({
    url: '/db/DbUser/deleteUser',
    method: 'post',
    data
  })
}
// 复制病例
export function copyUser(data) {
  return request({
    url: '/db/DbUser/copyUser',
    method: 'post',
    data
  })
}
// 获取病例详情
export function getDetails(data) {
  return request({
    url: '/db/DbUser/getDetails',
    method: 'post',
    data
  })
}
//
// 保存数据
export function saveData(data) {
  return request({
    url: '/db/DbUser/saveData',
    method: 'post',
    data
  })
}
// 导出病例
export function exportUsers(data) {
  return request({
    url: '/db/DbUser/exportUsers',
    method: 'post',
    responseType: 'blob',
    data
  })
}
// 获取用户信息
export function getUserInfo(data) {
  return request({
    url: '/db/DbUser/getUserInfo',
    method: 'post',
    data
  })
}
